/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import javax.swing.JInternalFrame;

/**
 *
 * @author Thai Ngoc Hieu
 */
public class MainForm extends javax.swing.JFrame {

    /**
     * Creates new form MainForm
     */
    public MainForm() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        banner1 = new GUI.Banner();
        LeftPanel = new javax.swing.JPanel();
        InforPanel = new javax.swing.JInternalFrame();
        jLabel1 = new javax.swing.JLabel();
        TaskPanle = new javax.swing.JInternalFrame();
        jLabel2 = new javax.swing.JLabel();
        DisplayPanle = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setPreferredSize(new java.awt.Dimension(816, 685));
        setResizable(false);

        javax.swing.GroupLayout banner1Layout = new javax.swing.GroupLayout(banner1);
        banner1.setLayout(banner1Layout);
        banner1Layout.setHorizontalGroup(
            banner1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 818, Short.MAX_VALUE)
        );
        banner1Layout.setVerticalGroup(
            banner1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 200, Short.MAX_VALUE)
        );

        getContentPane().add(banner1, java.awt.BorderLayout.PAGE_START);

        LeftPanel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        LeftPanel.setPreferredSize(new java.awt.Dimension(200, 273));
        LeftPanel.setLayout(new java.awt.BorderLayout());

        InforPanel.setBorder(null);
        InforPanel.setClosable(true);
        InforPanel.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        InforPanel.setTitle("Info Panel");
        InforPanel.setFocusTraversalPolicyProvider(true);
        InforPanel.setFrameIcon(null);
        InforPanel.setPreferredSize(new java.awt.Dimension(200, 200));
        InforPanel.setVisible(true);

        jLabel1.setText("Tin nhắn, thông tin người đăng nhập ...");

        javax.swing.GroupLayout InforPanelLayout = new javax.swing.GroupLayout(InforPanel.getContentPane());
        InforPanel.getContentPane().setLayout(InforPanelLayout);
        InforPanelLayout.setHorizontalGroup(
            InforPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(InforPanelLayout.createSequentialGroup()
                .addComponent(jLabel1)
                .addGap(0, 8, Short.MAX_VALUE))
        );
        InforPanelLayout.setVerticalGroup(
            InforPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(InforPanelLayout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(116, Short.MAX_VALUE))
        );

        LeftPanel.add(InforPanel, java.awt.BorderLayout.PAGE_START);
        try {
            InforPanel.setIcon(true);
        } catch (java.beans.PropertyVetoException e1) {
            e1.printStackTrace();
        }

        TaskPanle.setBorder(null);
        TaskPanle.setClosable(true);
        TaskPanle.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
        TaskPanle.setTitle("Task Panel");
        TaskPanle.setVisible(true);

        jLabel2.setText("Chức năng của ct được thể hiện ở đây");

        javax.swing.GroupLayout TaskPanleLayout = new javax.swing.GroupLayout(TaskPanle.getContentPane());
        TaskPanle.getContentPane().setLayout(TaskPanleLayout);
        TaskPanleLayout.setHorizontalGroup(
            TaskPanleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, TaskPanleLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel2)
                .addContainerGap())
        );
        TaskPanleLayout.setVerticalGroup(
            TaskPanleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(TaskPanleLayout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(185, Short.MAX_VALUE))
        );

        LeftPanel.add(TaskPanle, java.awt.BorderLayout.LINE_END);
        try {
            TaskPanle.setIcon(true);
        } catch (java.beans.PropertyVetoException e1) {
            e1.printStackTrace();
        }

        getContentPane().add(LeftPanel, java.awt.BorderLayout.WEST);

        jLabel3.setText("HIển thị nội dung dữ liệu được đưa ra phù hợp với yêu cầu chương trình");

        jLabel4.setText("Khi kích từng chức năng tương ứng, 1 panel thích hợp từ package Function sẽ được hiển thị tại đây");

        jLabel5.setText("Chức năng em chưa xây dựng được gì vì còn hơi vướng tí, anh xem rồi góp ý nhé. Không vừa ở đâu để em sửa");

        javax.swing.GroupLayout DisplayPanleLayout = new javax.swing.GroupLayout(DisplayPanle);
        DisplayPanle.setLayout(DisplayPanleLayout);
        DisplayPanleLayout.setHorizontalGroup(
            DisplayPanleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DisplayPanleLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(DisplayPanleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5)
                    .addComponent(jLabel4)
                    .addComponent(jLabel3))
                .addContainerGap(63, Short.MAX_VALUE))
        );
        DisplayPanleLayout.setVerticalGroup(
            DisplayPanleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(DisplayPanleLayout.createSequentialGroup()
                .addGap(70, 70, 70)
                .addComponent(jLabel3)
                .addGap(18, 18, 18)
                .addComponent(jLabel4)
                .addGap(18, 18, 18)
                .addComponent(jLabel5)
                .addContainerGap(337, Short.MAX_VALUE))
        );

        getContentPane().add(DisplayPanle, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MainForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MainForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MainForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MainForm.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new MainForm().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JPanel DisplayPanle;
    private javax.swing.JInternalFrame InforPanel;
    private javax.swing.JPanel LeftPanel;
    private javax.swing.JInternalFrame TaskPanle;
    private GUI.Banner banner1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    // End of variables declaration//GEN-END:variables
}
